a = [5,6,7,3,2,4,1,9,0,8]

for i in range(0,len(a) - 1):
    for j in range(i+1,len(a)):
        if a[i] > a[j]:
            min = a[j]
            max = a[i]
            a[i] = min
            a[j] = max

print(a)